﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EB3 RID: 3763
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonPathBuff : IMessage<RogueCommonPathBuff>, IMessage, IEquatable<RogueCommonPathBuff>, IDeepCloneable<RogueCommonPathBuff>, IBufferMessage
	{
		// Token: 0x17002FB8 RID: 12216
		// (get) Token: 0x0600A89A RID: 43162 RVA: 0x001C7471 File Offset: 0x001C5671
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonPathBuff> Parser
		{
			get
			{
				return RogueCommonPathBuff._parser;
			}
		}

		// Token: 0x17002FB9 RID: 12217
		// (get) Token: 0x0600A89B RID: 43163 RVA: 0x001C7478 File Offset: 0x001C5678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonPathBuffReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002FBA RID: 12218
		// (get) Token: 0x0600A89C RID: 43164 RVA: 0x001C748A File Offset: 0x001C568A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonPathBuff.Descriptor;
			}
		}

		// Token: 0x0600A89D RID: 43165 RVA: 0x001C7491 File Offset: 0x001C5691
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPathBuff()
		{
		}

		// Token: 0x0600A89E RID: 43166 RVA: 0x001C7499 File Offset: 0x001C5699
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPathBuff(RogueCommonPathBuff other) : this()
		{
			this.value_ = ((other.value_ != null) ? other.value_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A89F RID: 43167 RVA: 0x001C74CE File Offset: 0x001C56CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonPathBuff Clone()
		{
			return new RogueCommonPathBuff(this);
		}

		// Token: 0x17002FBB RID: 12219
		// (get) Token: 0x0600A8A0 RID: 43168 RVA: 0x001C74D6 File Offset: 0x001C56D6
		// (set) Token: 0x0600A8A1 RID: 43169 RVA: 0x001C74DE File Offset: 0x001C56DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaTypeValue Value
		{
			get
			{
				return this.value_;
			}
			set
			{
				this.value_ = value;
			}
		}

		// Token: 0x0600A8A2 RID: 43170 RVA: 0x001C74E7 File Offset: 0x001C56E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonPathBuff);
		}

		// Token: 0x0600A8A3 RID: 43171 RVA: 0x001C74F5 File Offset: 0x001C56F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonPathBuff other)
		{
			return other != null && (other == this || (object.Equals(this.Value, other.Value) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A8A4 RID: 43172 RVA: 0x001C7528 File Offset: 0x001C5728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.value_ != null)
			{
				num ^= this.Value.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A8A5 RID: 43173 RVA: 0x001C7564 File Offset: 0x001C5764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A8A6 RID: 43174 RVA: 0x001C756C File Offset: 0x001C576C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A8A7 RID: 43175 RVA: 0x001C7575 File Offset: 0x001C5775
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.value_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Value);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A8A8 RID: 43176 RVA: 0x001C75A8 File Offset: 0x001C57A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.value_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Value);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A8A9 RID: 43177 RVA: 0x001C75E8 File Offset: 0x001C57E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonPathBuff other)
		{
			if (other == null)
			{
				return;
			}
			if (other.value_ != null)
			{
				if (this.value_ == null)
				{
					this.Value = new FormulaTypeValue();
				}
				this.Value.MergeFrom(other.Value);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A8AA RID: 43178 RVA: 0x001C763C File Offset: 0x001C583C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A8AB RID: 43179 RVA: 0x001C7648 File Offset: 0x001C5848
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.value_ == null)
					{
						this.Value = new FormulaTypeValue();
					}
					input.ReadMessage(this.Value);
				}
			}
		}

		// Token: 0x04004476 RID: 17526
		private static readonly MessageParser<RogueCommonPathBuff> _parser = new MessageParser<RogueCommonPathBuff>(() => new RogueCommonPathBuff());

		// Token: 0x04004477 RID: 17527
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004478 RID: 17528
		public const int ValueFieldNumber = 4;

		// Token: 0x04004479 RID: 17529
		private FormulaTypeValue value_;
	}
}
